import instance from "@/axios";

// 课程列表
export  const courseList = ()=>instance.get("/course/list")

// 课程分页数据
export  const coursePage = (searchForm)=>instance.post("/course/page",searchForm)

// 添加更改课程
export  const addOrUpdate = (form)=>instance.post("/course/addOrUpdate",form)


//根据id查询课程信息
export  const getCourseById = (id)=>instance.get("/course/getById/"+id)

//根据id删除课程信息
export  const deleteCourse = (id)=>instance.delete("/course/delete/"+id)

